package com.net;

import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;

/**
 * Created by peak on 2016/1/5.
 */
public class URITest {
    public static void main(String[] args) throws Exception{
        HttpURLConnection conn =(HttpURLConnection)new URL("http://www.meizitu.com").openConnection();
        conn.setRequestProperty("Cookie","safedog-flow-item=FAAB14AAF5161EE212EACDC0D6DAC443");
        String s = conn.getContentType();   

        System.out.println(s);
    }
}
